package com.learn.practice.liteflow;

import com.yomahub.liteflow.aop.ICmpAroundAspect;
import com.yomahub.liteflow.slot.Slot;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class CompAspect implements ICmpAroundAspect {

    @Override
    public void beforeProcess(String nodeId, Slot slot) {
        //before business
        log.info("before business + " + nodeId);
    }

    @Override
    public void afterProcess(String nodeId, Slot slot) {
        //after business
        log.info("after business + " + nodeId + slot.getRequestData());

    }
}
